package test3_25.demo18;

public class Homework14_13 {

    public static int stringAt(String str,String subStr){

        String str1 = str.toUpperCase();
        String subStr1 = subStr.toUpperCase();
        for (int i = 0; i < str.length() - subStr.length(); i++) {
            if(subStr1.equals(str1.substring(i,i+subStr1.length()))){
                return i;
            }
        }
        return -1;

    }


    public static void main(String[] args) {
        System.out.println(Homework14_13.stringAt("wewokkfgkksd", "kk"));
    }
}
